package cn.zhangxh.base.query;

import lombok.Data;

/**
 * @param :
 * @Author zxh
 * @Date: 2022/1/24$ 14:46$
 * @Version 1.0
 * @return :
 * @Description: BaseQuery$
 */
@Data
public class BaseQuery {
    //起始页
    private Integer currentPage = 1;
    //每页条数
    private  Integer pageSize = 5;
    /*高级查询,关键字查询*/
    private String keyWorlds;
    /*计算当前页索引*/
    public Integer getStartPage(){
        return (this.currentPage-1) * this.pageSize;
    }
}
